var sPrefVal = sm_prefsBranch.getCharPref("jsonEximSettings");
var obj = JSON.parse(sPrefVal);
var cSeparator = obj.csv.export.separator;
//var cEncloser = obj.csv.export.encloser;
//var bColNames = obj.csv.export.includeColNames;
return result.join(cSeparator);
}
if (sFormat == "csv-excel")
return result.join('\t');
if (sFormat == "sql") //do we need column names too?
return "INSERT INTO \"someTable\" VALUES (" + result.toString() + ");";
return "";
},
// UserTreeClick: Handle the user clicking on the tree
UserTreeClick: function(ev) {
// This event happens AFTER the window has scrolled (if necessary). This means that if the user clicked on an element that is partially off screen, and the screen scrolls to fully display it, then the mouse may no longer be over the correct element.
//if (ev.button == 2) // Right-click
//store the row/column that the click occurred on; used when copying cell text